package com.es.service;


import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class StudentService {


    @Transactional(propagation = Propagation.REQUIRED)
    public void save(){

    }
    @Transactional(rollbackFor = Exception.class)
    public void update(){

    }
    @Transactional(isolation = Isolation.DEFAULT,readOnly = true,timeout = 30)
    public void get(){

    }
}
